package com.baizhi.cmfz.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Album implements Serializable {
    private static final long serialVersionUID = 3626866288354235178L;
    /**
     * 专辑id
     */
    private Integer albumId;

    /**
     * 专辑名
     */
    private String albumName;

    /**
     * 专辑作者
     */
    private String albumAuthor;

    /**
     * 播音
     */
    private String albumTeller;

    /**
     * 集数
     */
    private Integer albumEpisodes;

    /**
     * 发布时间
     */
    private LocalDateTime albumDate;

    /**
     * 简介
     */
    private String albumContent;

    /**
     * 封面
     */
    private String albumImage;

    /**
     * 评价星级
     */
    private Integer albumStar;

    public Album() {}

    public Integer getAlbumId() {return this.albumId;}

    public String getAlbumName() {return this.albumName;}

    public String getAlbumAuthor() {return this.albumAuthor;}

    public String getAlbumTeller() {return this.albumTeller;}

    public Integer getAlbumEpisodes() {return this.albumEpisodes;}

    public LocalDateTime getAlbumDate() {return this.albumDate;}

    public String getAlbumContent() {return this.albumContent;}

    public String getAlbumImage() {return this.albumImage;}

    public Integer getAlbumStar() {return this.albumStar;}

    public void setAlbumId(Integer albumId) {this.albumId = albumId; }

    public void setAlbumName(String albumName) {this.albumName = albumName; }

    public void setAlbumAuthor(String albumAuthor) {this.albumAuthor = albumAuthor; }

    public void setAlbumTeller(String albumTeller) {this.albumTeller = albumTeller; }

    public void setAlbumEpisodes(Integer albumEpisodes) {this.albumEpisodes = albumEpisodes; }

    public void setAlbumDate(LocalDateTime albumDate) {this.albumDate = albumDate; }

    public void setAlbumContent(String albumContent) {this.albumContent = albumContent; }

    public void setAlbumImage(String albumImage) {this.albumImage = albumImage; }

    public void setAlbumStar(Integer albumStar) {this.albumStar = albumStar; }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Album)) return false;
        final Album other = (Album) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$albumId = this.getAlbumId();
        final Object other$albumId = other.getAlbumId();
        if (this$albumId == null ? other$albumId != null : !this$albumId.equals(other$albumId)) return false;
        final Object this$albumName = this.getAlbumName();
        final Object other$albumName = other.getAlbumName();
        if (this$albumName == null ? other$albumName != null : !this$albumName.equals(other$albumName)) return false;
        final Object this$albumAuthor = this.getAlbumAuthor();
        final Object other$albumAuthor = other.getAlbumAuthor();
        if (this$albumAuthor == null ? other$albumAuthor != null : !this$albumAuthor.equals(other$albumAuthor))
            return false;
        final Object this$albumTeller = this.getAlbumTeller();
        final Object other$albumTeller = other.getAlbumTeller();
        if (this$albumTeller == null ? other$albumTeller != null : !this$albumTeller.equals(other$albumTeller))
            return false;
        final Object this$albumEpisodes = this.getAlbumEpisodes();
        final Object other$albumEpisodes = other.getAlbumEpisodes();
        if (this$albumEpisodes == null ? other$albumEpisodes != null : !this$albumEpisodes.equals(other$albumEpisodes))
            return false;
        final Object this$albumDate = this.getAlbumDate();
        final Object other$albumDate = other.getAlbumDate();
        if (this$albumDate == null ? other$albumDate != null : !this$albumDate.equals(other$albumDate)) return false;
        final Object this$albumContent = this.getAlbumContent();
        final Object other$albumContent = other.getAlbumContent();
        if (this$albumContent == null ? other$albumContent != null : !this$albumContent.equals(other$albumContent))
            return false;
        final Object this$albumImage = this.getAlbumImage();
        final Object other$albumImage = other.getAlbumImage();
        if (this$albumImage == null ? other$albumImage != null : !this$albumImage.equals(other$albumImage))
            return false;
        final Object this$albumStar = this.getAlbumStar();
        final Object other$albumStar = other.getAlbumStar();
        if (this$albumStar == null ? other$albumStar != null : !this$albumStar.equals(other$albumStar)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {return other instanceof Album;}

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $albumId = this.getAlbumId();
        result = result * PRIME + ($albumId == null ? 43 : $albumId.hashCode());
        final Object $albumName = this.getAlbumName();
        result = result * PRIME + ($albumName == null ? 43 : $albumName.hashCode());
        final Object $albumAuthor = this.getAlbumAuthor();
        result = result * PRIME + ($albumAuthor == null ? 43 : $albumAuthor.hashCode());
        final Object $albumTeller = this.getAlbumTeller();
        result = result * PRIME + ($albumTeller == null ? 43 : $albumTeller.hashCode());
        final Object $albumEpisodes = this.getAlbumEpisodes();
        result = result * PRIME + ($albumEpisodes == null ? 43 : $albumEpisodes.hashCode());
        final Object $albumDate = this.getAlbumDate();
        result = result * PRIME + ($albumDate == null ? 43 : $albumDate.hashCode());
        final Object $albumContent = this.getAlbumContent();
        result = result * PRIME + ($albumContent == null ? 43 : $albumContent.hashCode());
        final Object $albumImage = this.getAlbumImage();
        result = result * PRIME + ($albumImage == null ? 43 : $albumImage.hashCode());
        final Object $albumStar = this.getAlbumStar();
        result = result * PRIME + ($albumStar == null ? 43 : $albumStar.hashCode());
        return result;
    }

    public String toString() {return "Album(albumId=" + this.getAlbumId() + ", albumName=" + this.getAlbumName() + "," +
            " albumAuthor=" + this.getAlbumAuthor() + ", albumTeller=" + this.getAlbumTeller() + ", albumEpisodes=" + this.getAlbumEpisodes() + ", albumDate=" + this.getAlbumDate() + ", albumContent=" + this.getAlbumContent() + ", albumImage=" + this.getAlbumImage() + ", albumStar=" + this.getAlbumStar() + ")";}
}

